package model

type Task struct {
	Id                 int64  `json:"id" gorm:"column:id"`
	Name               string `json:"name" gorm:"column:name"`
	Code               string `json:"code" gorm:"column:code"`
	ManHour            string `json:"man_hour" gorm:"column:man_hour"`
	ActualManHour      string `json:"actual_man_hour" gorm:"column:actual_man_hour"`
	FrameRange         string `json:"frame_range" gorm:"column:frame_range"`
	TimeCode           string `json:"timecode" gorm:"column:timecode"`
	Type               string `json:"type" gorm:"column:type"`
	TenantId           int64  `json:"tenant_id" gorm:"column:tenant_id"`
	ProjectId          int64  `json:"project_id" gorm:"column:project_id"`
	EntityId           int64  `json:"entity_id" gorm:"column:entity_id"`
	EntityModuleId     int64  `json:"entity_module_id" gorm:"column:entity_module_id"`
	StepType           string `json:"step_type" gorm:"column:step_type"`
	StepCategoryId     int64  `json:"step_category_id" gorm:"column:step_category_id"`
	StepId             int64  `json:"step_id" gorm:"column:step_id"`
	PlanStartTime      int64  `json:"plan_start_time" gorm:"column:plan_start_time"`
	PlanEndTime        int64  `json:"plan_end_time" gorm:"column:plan_end_time"`
	PlanDuration       string `json:"plan_duration" gorm:"column:plan_duration"`
	Assignee           int64  `json:"assignee" gorm:"column:assignee"`
	Executor           int64  `json:"executor" gorm:"column:executor"`
	IsAssignee         string `json:"is_assignee" gorm:"column:is_assignee"`
	PreTaskId          int64  `json:"pre_task_id" gorm:"column:pre_task_id"`
	ExecutorTenantId   int64  `json:"executor_tenant_id" gorm:"column:executor_tenant_id"`
	LevelCategory      string `json:"level_category" gorm:"column:level_category"`
	CapacityMark       string `json:"capacity_mark" gorm:"column:capacity_mark"`
	IsManualAdjustment string `json:"is_manual_adjustment" gorm:"column:is_manual_adjustment"`
	ExecutorConfirmed  string `json:"executor_confirmed" gorm:"column:executor_confirmed"`
	AssigneeAt         int64  `json:"assignee_at" gorm:"column:assignee_at"`
	StartTime          int64  `json:"start_time" gorm:"column:start_time"`
	EndTime            int64  `json:"end_time" gorm:"column:end_time"`
	UserCertId         int64  `json:"user_cert_id" gorm:"column:user_cert_id"`
	AssigneeProducer   int64  `json:"assignee_producer" gorm:"column:assignee_producer"`
	AssignStatus       string `json:"assign_status" gorm:"column:assign_status"`
	DepartmentId       int64  `json:"department_id" gorm:"column:department_id"`
	IsAssemble         string `json:"is_assemble" gorm:"column:is_assemble"`
	DealStatus         string `json:"deal_status" gorm:"column:deal_status"`
	TaskStatus         int64  `json:"task_status" gorm:"column:task_status"`
	ClockStatus        string `json:"clock_status" gorm:"column:clock_status"`
	CreatedBy          int64  `json:"created_by" gorm:"column:created_by"`
	Created            int64  `json:"created" gorm:"column:created"`
	Uuid               string `json:"uuid" gorm:"column:uuid"`
}

// 设置表名
func (Task) TableName() string {
	return "task"
}
